package cars

import (
	"time"
)

type CarsWhiteListStruct struct {
	Id         int       `json:"id" gorm:"type:int(11) auto_increment; NOT NULL; primary_key"`
	Name       string    `json:"name" gorm:"type:varchar(255)"`
	Mobile     string    `json:"mobile" gorm:"type:varchar(32);"`
	CarNumber  string    `json:"car_number" gorm:"type:varchar(255); "`
	CarNoColor int       `json:"car_no_color" gorm:"type:tinyint(1); "`
	CarType    int       `json:"car_type" gorm:"type:tinyint(1); "`
	CreatedAt  time.Time `json:"created_at" gorm:"type:datetime"`
	UpdatedAt  time.Time `json:"updated_at" gorm:"type:datetime"`
	OrderType  int       `json:"order_type" gorm:"type:int(11); "`
	DeletedAt  time.Time `json:"deleted_at" gorm:"type:datetime"`
	OutTime    time.Time `json:"out_time" gorm:"type:datetime"`
}

func (c *CarsWhiteListStruct) TableName() string {
	return "cars_white_list"
}
